package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * VIP方案业务对象 ykj_pay_vip_plan
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class PayVipPlanBo extends BaseEntity {

    /** 自增主键 */
    @NotNull(
            message = "自增主键不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** 人民币价格 */
    @NotNull(
            message = "人民币价格不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private BigDecimal cnyPrice;

    /** 获得的月份数 */
    @NotNull(
            message = "获得的月份数不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer monthNum;

    /** 方案类型(1普通,2连续包月,3连续包季) */
    @NotNull(
            message = "方案类型(1普通,2连续包月,3连续包季)不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer planType;

    /** 是否折扣 */
    @NotNull(
            message = "是否折扣不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer discountFlag;
    /** vip类型 1普通会员,2专属会员 */
    private Integer vipType;
}
